<?php

session_start(); 
$infoproduk = $_SESSION['infoproduk'];
?>

<!DOCTYPE html>   
<html>   
<head>   
<title>Halaman Edit Produk</title>   
<link href="css/bootstrap.css" rel="stylesheet">  
<link rel="stylesheet" type="text/css" href="css/register.css" />
</head>  
<body>  

<div id="container">





<div id="tab">
		
			<ul class="nav nav-tabs navbar-inverse">
  		
    		<li><a href="#">DASHBOARD</a></li>
 		
  		<li><a href="#">Manajemen Profil</a></li>
		<li class="active dropdown">
  		
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Manajemen Produk <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="#" onClick="return false" id="chimpanzee">Produk A</a></li>
                        <li><a href="#" onClick="return false" id="lemur">Produk B</a></li>
                        <li><a href="#" onClick="return false" id="jaguar">Produk C</a></li>
                    </ul>
                </li>
			
		</ul>
	
		</div>
		
	</div>

<h2> EDIT PRODUK </h2>

<form class="form-horizontal" action="Functions/insertproduk.php" method="POST">  
        <fieldset>  
          <div class="control-group">  
            <label class="control-label" for="input01">Nama Produk</label>  
            <div class="controls">  
              <input type="text" name="namaproduk" class="input-xlarge" id="input01" value="<?php if(isset($infoproduk)) echo $infoproduk['NAMAPRODUK']; ?> ">   
            </div>  
          </div>
		  <div class="control-group">  
		  
		  <fieldset>  
          <div class="control-group">  
            <label class="control-label" for="input01">Jenis</label>  
            <div class="controls">  
               <select id="select01" name="jenis">  
                <option>Padi</option>  
                <option>Jagung</option>  
                <option>Ketela</option>  
                <option>Beras</option>  
                <option>Tebu</option>  
              </select>     
            </div>  
          </div>
		  <div class="control-group"> 
		  
            <label class="control-label" for="input01">Kuantitas</label>  
            <div class="controls">  
              <input type="text" name="kuantitas" class="input-xlarge" id="input01" value="<?php if(isset($infoproduk)) echo $infoproduk['KUANTITAS']; ?>">   
            </div>  
          </div>
		  
		  <div class="control-group">  
            <label class="control-label" for="input01">Harga satuan</label>  
            <div class="controls">  
              <input type="text" name="harga" class="input-xlarge" id="input01" value="<?php if(isset($infoproduk)) echo $infoproduk['HARGASAT']; ?>">   
            </div>  
          </div>
		  
		  <div class="control-group">  
            <label class="control-label" for="select01">Satuan</label>  
            <div class="controls">  
              <select id="select01" name="satuan">  
                <option>Kilogram</option>  
                <option>Kuintal</option>  
                <option>Ton</option>  
                <option>Gram</option>  
                <option>Ikat</option>  
              </select>  
            </div>  
          </div>
		  <div class="control-group">  
            <label class="control-label" for="select01">Berlaku sampai</label>  
            <div class="controls">  
             <input type="date" name="berlaku" class="input-xlarge" id="input01" value="<?php if(isset($infoproduk)) echo $infoproduk['BERLAKU']; ?>">
            </div>  
          </div>
            <div class="control-group">  
            <label class="control-label" for="fileInput">Foto Produk</label>  
            <div class="controls">  
              <input class="input-file" name="fotoproduk" id="fileInput" type="file">  
            </div>  
          </div>  
          <div class="control-group">  
            <label class="control-label" for="textarea">Deskripsi Produk</label>  
            <div class="controls">  
              <textarea class="input-xlarge" name="deskripsi" id="textarea" rows="3" value="<?php if(isset($infoproduk)) echo $infoproduk['DESKRIPSI']; ?>"></textarea>  
            </div>  
          </div>  
          <div class="form-actions">  
            <button type="submit" class="btn btn-primary">Simpan</button>  
            <button class="btn">Cancel</button>  
          </div>  
        </fieldset>  
</form> 

</div>
 
 <script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>  
</html>

<?php session_destroy(); ?>